package simple14.discount;

public class FullDiscount extends MultyDiscount {

    public FullDiscount(MultyDiscount nextMultyDiscount) {
        super(nextMultyDiscount);
    }

    @Override
    public int calculate(int money) {
        if (money > 100) {
            System.out.println("满减优惠20元");
            money = money - 20;
        }

        return super.calculate(money);
    }
}
